package org.logan.sample.db.model;

import java.io.Serializable;
import java.util.List;

public class SysResource implements Serializable {
    private Long              resourceId;
    private String            resourceName;
    private String            resourceIdentity;
    private String            resourceUrl;
    private Long              resourceParentId;
    private String            resourceParentIds;
    private String            resourceIcon;
    private Integer           resourceWeight;
    private Integer           resourceIsEnable;
    private String            permissionIds;        // 权限时用到(ids) 冗余字段
    private List<SysResource> childrens;            // 子资源
    private static final long serialVersionUID = 1L;

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName == null ? null : resourceName.trim();
    }

    public String getResourceIdentity() {
        return resourceIdentity;
    }

    public void setResourceIdentity(String resourceIdentity) {
        this.resourceIdentity = resourceIdentity == null ? null : resourceIdentity.trim();
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl == null ? null : resourceUrl.trim();
    }

    public Long getResourceParentId() {
        return resourceParentId;
    }

    public void setResourceParentId(Long resourceParentId) {
        this.resourceParentId = resourceParentId;
    }

    public String getResourceParentIds() {
        return resourceParentIds;
    }

    public void setResourceParentIds(String resourceParentIds) {
        this.resourceParentIds = resourceParentIds == null ? null : resourceParentIds.trim();
    }

    public String getResourceIcon() {
        return resourceIcon;
    }

    public void setResourceIcon(String resourceIcon) {
        this.resourceIcon = resourceIcon == null ? null : resourceIcon.trim();
    }

    public Integer getResourceWeight() {
        return resourceWeight;
    }

    public void setResourceWeight(Integer resourceWeight) {
        this.resourceWeight = resourceWeight;
    }

    public Integer getResourceIsEnable() {
        return resourceIsEnable;
    }

    public void setResourceIsEnable(Integer resourceIsEnable) {
        this.resourceIsEnable = resourceIsEnable;
    }

    public String getPermissionIds() {
        return permissionIds;
    }

    public void setPermissionIds(String permissionIds) {
        this.permissionIds = permissionIds;
    }

    public List<SysResource> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<SysResource> childrens) {
        this.childrens = childrens;
    }
}